Carbon


PBCatMoveAsync

Header: Files.h Carbon status: Supported

Moves files or directories from one directory to another on the same volume.

OSErr PBCatMoveAsync (
    CMovePBPtr paramBlock
);
paramBlock

A pointer to a catalog move parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

PBCatMoveAsync is strictly a file catalog operation; it does not actually change the location of the file or directory on the disk.

The source file or directory should be specified by its volume, parent directory ID, and partial pathname.

The PBCatMoveAsync function cannot move a file or directory to another volume (that is, ioVRefNum is used in specifying both the source and the destination). Also, you cannot use it to rename files or directories; to rename a file or directory, use PBHRenameAsync.

If a file ID reference exists for the file, the file ID reference remains with the moved file.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)